﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="BuscaReclamos.aspx.cs" Inherits="DECOR.WebApp.BuscaReclamos" Title="Untitled Page" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<%@ Register assembly="IdeaSparx.CoolControls.Web" namespace="IdeaSparx.CoolControls.Web" tagprefix="cc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphHeader" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphMainMenu" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphTopMenu" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="cphTopContent" runat="server">
</asp:Content>

<asp:Content ID="Content6" ContentPlaceHolderID="cphMain" runat="server">
    <asp:UpdatePanel ID="upMain" runat="server">
        <ContentTemplate>
            <div style="height:10px"></div>

                <table cellpadding="2" cellspacing="0" style="padding-left:10px; padding-right:100px;" class="tbl-detalle">
                <tr>
                    <td style="width: 150px;">Nro de reclamo</td>
                    <td style="width: 350px"><asp:TextBox ID="txtNroReclamo" runat="server" Width="100px" MaxLength="10"
                            CssClass="inputbox" ReadOnly="false" AutoPostBack="false" Font-Size="10" /></td>
                </tr>
                <tr>
                    <td style="width: 150px;">Pedido de venta</td>
                    <td style="width: 350px"><asp:TextBox ID="txtPedidoVenta" runat="server" Width="100px" MaxLength="10"
                            CssClass="inputbox" ReadOnly="false" AutoPostBack="false" Font-Size="10" /></td>
                </tr>               
                <tr>
                    <td style="width: 150px;">Cliente</td>
                    <td style="width: 350px"><asp:TextBox ID="txtCliente" runat="server" Width="250px"
                            CssClass="inputbox" ReadOnly="false" AutoPostBack="false" Font-Size="10" /></td>
                </tr>              
                <tr>
                    <td style="width: 150px;">Nombre de cliente</td>
                    <td style="width: 350px"><asp:TextBox ID="txtNomCliente" runat="server" Width="250px"
                            CssClass="inputbox" ReadOnly="false" AutoPostBack="false" Font-Size="10" /></td>
                </tr>
                <tr>
                    <td style="width: 150px;">Material</td>
                    <td style="width: 350px">
                        <asp:TextBox ID="txtMaterial" runat="server" Width="150px"
                            CssClass="inputbox" ReadOnly="false" AutoPostBack="false" Font-Size="10" MaxLength="18" /></td>
                        <cc1:FilteredTextBoxExtender ID="fteNumPedido" runat="server" TargetControlID="txtMaterial"
                                        FilterType="Numbers" />
                </tr>
                <tr>
                    <td>Fecha de Creación</td>
                    <td>
                        <asp:TextBox ID="txtFechaInicio" runat="server" Width="70"
                            CssClass="inputbox" ReadOnly="false" AutoPostBack="false" Font-Size="10" />
                        <cc1:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtFechaInicio"
                            Format="dd/MM/yyyy" CssClass="MyCalendar" />
                        &nbsp;a
                        <asp:TextBox ID="txtFechaFin" runat="server" Width="70"
                            CssClass="inputbox" ReadOnly="false" AutoPostBack="false" Font-Size="10" />
                        <cc1:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtFechaFin"
                            Format="dd/MM/yyyy" CssClass="MyCalendar" />
                        &nbsp;&nbsp;    
                        </td>
                </tr>
                <tr>
                    <td>Fecha inicio Contacto</td>
                    <td>
                        <asp:TextBox ID="txtFechaII" runat="server" Width="70"
                            CssClass="inputbox" ReadOnly="false" AutoPostBack="false" Font-Size="10" />
                        <cc1:CalendarExtender ID="txtFechaII_CalendarExtender" runat="server" TargetControlID="txtFechaII"
                            Format="dd/MM/yyyy" CssClass="MyCalendar" />
                        &nbsp;a
                        <asp:TextBox ID="txtFechaIF" runat="server" Width="70"
                            CssClass="inputbox" ReadOnly="false" AutoPostBack="false" Font-Size="10" />
                        <cc1:CalendarExtender ID="txtFechaIF_CalendarExtender" runat="server" TargetControlID="txtFechaIF"
                            Format="dd/MM/yyyy" CssClass="MyCalendar" />
                    </td>
                </tr>
                <tr>
                    <td>Fecha fin Contacto</td>
                    <td>
                        <asp:TextBox ID="txtFechaFI" runat="server" Width="70"
                            CssClass="inputbox" ReadOnly="false" AutoPostBack="false" Font-Size="10" />
                        <cc1:CalendarExtender ID="txtFechaFI_CalendarExtender" runat="server" TargetControlID="txtFechaFI"
                            Format="dd/MM/yyyy" CssClass="MyCalendar" />
                        &nbsp;a
                        <asp:TextBox ID="txtFechaFF" runat="server" Width="70"
                            CssClass="inputbox" ReadOnly="false" AutoPostBack="false" Font-Size="10" />
                        <cc1:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="txtFechaFF"
                            Format="dd/MM/yyyy" CssClass="MyCalendar" />
                    </td>
                </tr>
                    <tr>
                        <td>
                            Estado</td>
                        <td>
                            <asp:DropDownList ID="ddlEstado" runat="server"  Width="206px">
                            </asp:DropDownList>
                        </td>
                    </tr>
                <tr>
                    <td>Usuario</td>
                    <td>
                        <asp:TextBox ID="txtUsuario" runat="server" Width="70" CssClass="inputbox"></asp:TextBox>
                        <asp:ImageButton ID="ibtnBuscar" runat="server" ImageAlign="Middle" ImageUrl="~/img/find.png" OnClick="ibtnBuscar_Click" />
                    </td>
                </tr>
                
            </table>

            <div style="height:10px"></div>
            
            
                <cc2:CoolGridView ID="gvReclamos" runat="server" AutoGenerateColumns="false" CssClass="tbl-detalle"
                            Width="978px" OnRowCommand="gvReclamos_RowCommand" GridLines="None" ShowHeader="true"
                            DefaultColumnWidth="870px" Height="350px">
                    <Columns>
                        <asp:ButtonField CommandName="Editar" ButtonType="Image" ImageUrl="~/img/edit.png" ShowHeader="true" 
                                     ItemStyle-HorizontalAlign="Center" ItemStyle-VerticalAlign="Top" ItemStyle-Width="30px"
                                     HeaderStyle-Width="30px" />
                        <asp:ButtonField CommandName="Ver" ButtonType="Image" ImageUrl="~/img/view.png" ShowHeader="true" 
                                     ItemStyle-HorizontalAlign="Center" ItemStyle-VerticalAlign="Top" ItemStyle-Width="30px"
                                     HeaderStyle-Width="30px" />
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <table border="0" style="background-color:Transparent;">
                                    <tr>
                                        <th style="width:85px;">Doc. Reclamo</th>
                                        <th style="width:260px;">Nombre Cliente</th>
                                        <th style="width:115px;">Material</th>
                                        <th style="width:90px">Pedido</th>
                                        <th style="width:110px;">Fecha doc.</th>
                                        <th style="width:170px;">Estado</th>
                                    </tr>
                                </table>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <table border="0" style="background-color:Transparent; margin-left:3px;">
                                    <tr style="height:5px;" />
                                    <tr>
                                        <td style="width:85px;">
                                            <asp:Label ID="lblNumPedido" runat="server" Text='<%# Bind("VBELN") %>' />
                                        </td>
                                        <td style="width:260px;">
                                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("NAME1") %>' />
                                        </td>
                                        <td style="width:115px;">
                                            <asp:Label ID="Label3" runat="server" Text='<%# Bind("MAKTX") %>' />
                                        </td>
                                        <td style="text-align:right; width:90px;">
                                            <asp:Label ID="Label4" runat="server" Text='<%# Bind("VGBEL") %>' />
                                        </td>
                                        <td style="text-align:center; width:110px;">
                                            <asp:Label ID="Label5" runat="server" Text='<%# Bind("KTABG") %>' />
                                        </td>
                                        <td style="width:170px;">
                                            <asp:Label ID="Label6" runat="server" Text='<%# Bind("STAT") %>' />
                                        </td>
                                    </tr>
                                    <tr style="height:5px;" />
                                </table>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                    <AlternatingRowStyle BackColor="Beige" />
                    <HeaderStyle BackColor="Silver" Font-Size="12px" Height="20px" />
                </cc2:CoolGridView>
                

        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

<asp:Content ID="Content7" ContentPlaceHolderID="cphFooter" runat="server">
</asp:Content>
